package com.xdl.backstage.base.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.alibaba.fastjson.JSONObject;

@RestController
public class TestController {

	@RequestMapping(value="/test", produces="application/json")
	public String test1() {
		JSONObject jsonObject = new JSONObject();
		jsonObject.put("token", "132432432");
		jsonObject.put("msg", "success");
		return jsonObject.toString();
	}
	
	@GetMapping("/login")
	public String login() {
		return "login";
	}
	
}
